home *** CD-ROM | disk | FTP | other *** search
- Path: sun001.spd.dsccc.com!jmccarty
- From: jmccarty@sun1307.spd.dsccc.com (Mike McCarty)
- Newsgroups: comp.lang.c
- Subject: Re: CONVERTING INTEGER TO ASCII??????
- Date: 27 Mar 1996 16:11:14 GMT
- Organization: DSC Communications Corporation
- Message-ID: <4jbpb2$pa9@sun001.spd.dsccc.com>
- References: <4i17r9$2kn@maltese.eag.unisysgsg.com> <4ic9ll$cfp@news.bridge.net> <danpop.827013499@rscernix> <4iv1a6$pl2@news.bridge.net>
- NNTP-Posting-Host: sun1307.spd.dsccc.com
-
- In article <4iv1a6$pl2@news.bridge.net>,
- Gary Thompson <psycho@bridge.net> wrote:
- )danpop@mail.cern.ch (Dan Pop) wrote:
- )
- )>In <4ic9ll$cfp@news.bridge.net> psycho@bridge.net (Gary Thompson) writes:
- )
- )>>buff=itoa(intvalue,buff,10); (I think...)
- )
- )>And you're wrong. There is no itoa function in the C language.
- )
- )>K&R2 contains such a function (as an example), at page 64, but it has
- )>only two arguments :-)
- )
- )Then what is this... (badly copied from my C compiler)
- )ª----------------------------------------------------------------------------
- )ª _
- )ª Include: <stdlib.h> _
- )ª _
- )ª Syntax: char *itoa( int value, char *string, int radix ); _
- )ª char *ltoa( long value, char *string, int radix ); _
- )ª char *ultoa( unsigned long value, char *string, int radix ); _
- )ª _
- )ª Returns: a pointer to <string>. _
- )ª --
- )ª___________________________________________________________________________ª
-
- [some control characters edited out and width reduced]
-
- This is a routine which your link library designer decided to put in.
- It is not a standard C routine. Library designers are required to put
- certain functionality into the library. There is (AFAIK) no
- functionality they are required to omit. Since the C language is
- defined by a standard, not by an implementation, implementation
- arguments are irrelevant.
-
- Mike
- --
- ----
- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- I don't speak for DSC. <- They make me say that.
-